
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>面试题 · gitbook电子书</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-toggle-chapters/toggle.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="html.html" />
    
    
    <link rel="prev" href="../使用/使用.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    前言
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="../使用/使用.html">
            
                <a href="../使用/使用.html">
            
                    
                    md语法 & gitbook使用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="1.2" data-path="面试题.html">
            
                <a href="面试题.html">
            
                    
                    面试题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="html.html">
            
                <a href="html.html">
            
                    
                    HTML
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="css.html">
            
                <a href="css.html">
            
                    
                    CSS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="js.html">
            
                <a href="js.html">
            
                    
                    JavaScript
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="vue.html">
            
                <a href="vue.html">
            
                    
                    Vue
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="小程序.html">
            
                <a href="小程序.html">
            
                    
                    小程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="编程题.html">
            
                <a href="编程题.html">
            
                    
                    编程题
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../html/">
            
                <a href="../html/">
            
                    
                    1. HTML
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../html/1.常用标签.html">
            
                <a href="../html/1.常用标签.html">
            
                    
                    1.1 常用标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../html/2.列表.html">
            
                <a href="../html/2.列表.html">
            
                    
                    1.2 列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../html/3.表单.html">
            
                <a href="../html/3.表单.html">
            
                    
                    1.3 表单属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../html/4.音频&视频.html">
            
                <a href="../html/4.音频&视频.html">
            
                    
                    1.4 ifame & audio & video
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../css/">
            
                <a href="../css/">
            
                    
                    2. CSS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../css/1.选择器.html">
            
                <a href="../css/1.选择器.html">
            
                    
                    2.1 选择器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../css/2.字体样式.html">
            
                <a href="../css/2.字体样式.html">
            
                    
                    2.2 字体样式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../css/3.背景.html">
            
                <a href="../css/3.背景.html">
            
                    
                    2.3 背景
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../css/4.盒子模型.html">
            
                <a href="../css/4.盒子模型.html">
            
                    
                    2.4 盒子模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../css/5.浮动.html">
            
                <a href="../css/5.浮动.html">
            
                    
                    2.5 浮动
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../css/6.定位和渐变.html">
            
                <a href="../css/6.定位和渐变.html">
            
                    
                    2.6 定位 & 渐变
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="../css/7.过渡&变形.html">
            
                <a href="../css/7.过渡&变形.html">
            
                    
                    2.7 过渡 & 变形
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.8" data-path="../css/8.动画.html">
            
                <a href="../css/8.动画.html">
            
                    
                    2.8 动画
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.9" data-path="../css/9.滤镜.html">
            
                <a href="../css/9.滤镜.html">
            
                    
                    2.9 滤镜
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.10" data-path="../css/10.布局.html">
            
                <a href="../css/10.布局.html">
            
                    
                    2.10 布局
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../JS/">
            
                <a href="../JS/">
            
                    
                    3. JS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../JS/数据类型.html">
            
                <a href="../JS/数据类型.html">
            
                    
                    3.1 数据类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../JS/语句.html">
            
                <a href="../JS/语句.html">
            
                    
                    操作符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../JS/操作符.html">
            
                <a href="../JS/操作符.html">
            
                    
                    语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../JS/函数.html">
            
                <a href="../JS/函数.html">
            
                    
                    函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../JS/基本类型和引用类型的值.html">
            
                <a href="../JS/基本类型和引用类型的值.html">
            
                    
                    基本类型和引用类型的值
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="../JS/执行环境及作用域.html">
            
                <a href="../JS/执行环境及作用域.html">
            
                    
                    执行环境及作用域
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="../JS/垃圾收集.html">
            
                <a href="../JS/垃圾收集.html">
            
                    
                    垃圾收集
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="../JS/Object类型.html">
            
                <a href="../JS/Object类型.html">
            
                    
                    Object类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.9" data-path="../JS/Array类型.html">
            
                <a href="../JS/Array类型.html">
            
                    
                    Array类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.10" data-path="../JS/Date类型.html">
            
                <a href="../JS/Date类型.html">
            
                    
                    Date类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.11" data-path="../JS/string&array.html">
            
                <a href="../JS/string&array.html">
            
                    
                    3.2 String & Array
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.12" data-path="../JS/date.html">
            
                <a href="../JS/date.html">
            
                    
                    3.3 Date类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.13" data-path="../JS/正则表达式.html">
            
                <a href="../JS/正则表达式.html">
            
                    
                    3.4 RegExp类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.14" data-path="../JS/global&math.html">
            
                <a href="../JS/global&math.html">
            
                    
                    3.5 Global对象 & Math对象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.15" data-path="../JS/变量&作用域&垃圾收集.html">
            
                <a href="../JS/变量&作用域&垃圾收集.html">
            
                    
                    3.6 变量 & 作用域 & 垃圾收集
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.16" data-path="../JS/流程控制&函数.html">
            
                <a href="../JS/流程控制&函数.html">
            
                    
                    3.7 流程控制 & 函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.17" data-path="../JS/面向对象.html">
            
                <a href="../JS/面向对象.html">
            
                    
                    3.8 面向对象的程序设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.18" data-path="../JS/递归&冒泡&快速.html">
            
                <a href="../JS/递归&冒泡&快速.html">
            
                    
                    3.9 递归 & 冒泡 & 快速
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.19" data-path="../JS/定时器&防抖&节流.html">
            
                <a href="../JS/定时器&防抖&节流.html">
            
                    
                    3.10 定时器\防抖\节流
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.20" data-path="../JS/DOM获取&DOM操作.html">
            
                <a href="../JS/DOM获取&DOM操作.html">
            
                    
                    3.11 DOM获取 & DOM操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.21" data-path="../JS/键盘事件&鼠标事件.html">
            
                <a href="../JS/键盘事件&鼠标事件.html">
            
                    
                    3.12 键盘事件 & 鼠标事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.22" data-path="../JS/事件冒泡&事件代理&事件绑定.html">
            
                <a href="../JS/事件冒泡&事件代理&事件绑定.html">
            
                    
                    3.13 事件冒泡\代理\绑定
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.23" data-path="../JS/this指向.html">
            
                <a href="../JS/this指向.html">
            
                    
                    3.14 this指向
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.24" data-path="../JS/Ajax&跨域.html">
            
                <a href="../JS/Ajax&跨域.html">
            
                    
                    3.15 Ajax & 跨域
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.25" data-path="../JS/Bom.html">
            
                <a href="../JS/Bom.html">
            
                    
                    3.16 BOM
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.26" data-path="../JS/ES6.html">
            
                <a href="../JS/ES6.html">
            
                    
                    3.17 ES6
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.27" data-path="../JS/js实例.html">
            
                <a href="../JS/js实例.html">
            
                    
                    3.18 js实例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../vue/">
            
                <a href="../vue/">
            
                    
                    4. Vue
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../vue/1.基础.html">
            
                <a href="../vue/1.基础.html">
            
                    
                    4.1 基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../vue/2.生命周期.html">
            
                <a href="../vue/2.生命周期.html">
            
                    
                    4.2 生命周期
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../vue/3.vuex.html">
            
                <a href="../vue/3.vuex.html">
            
                    
                    4.3 vuex
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../vue/4.原理.html">
            
                <a href="../vue/4.原理.html">
            
                    
                    4.4 深入响应式原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../vue/5.组件.html">
            
                <a href="../vue/5.组件.html">
            
                    
                    4.5 组件进阶
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../vue/6.规模化.html">
            
                <a href="../vue/6.规模化.html">
            
                    
                    4.6 规模化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../vue/7.过渡&动画.html">
            
                <a href="../vue/7.过渡&动画.html">
            
                    
                    4.7 过渡 & 动画
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../vue/8.可复用性&组合.html">
            
                <a href="../vue/8.可复用性&组合.html">
            
                    
                    4.8 可复用性 & 组合
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="../vue/9.工具.html">
            
                <a href="../vue/9.工具.html">
            
                    
                    4.9 工具
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../Node/">
            
                <a href="../Node/">
            
                    
                    5. Node
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../插件/">
            
                <a href="../插件/">
            
                    
                    插件
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >面试题</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x9762;&#x8BD5;&#x9898;">&#x9762;&#x8BD5;&#x9898;</h1>
<ol>
<li><p>&#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x7528;DIV+CSS&#x5E03;&#x5C40;&#xFF1F;  </p>
</li>
<li><p>&#x5E38;&#x89C1;&#x7684;&#x6D4F;&#x89C8;&#x5668;&#x5185;&#x6838;&#x6709;&#x54EA;&#x4E9B;&#xFF1F;<br>&#x7B54;&#xFF1A;&#x4E94;&#x5927;&#x6D4F;&#x89C8;&#x5668;&#xFF1A;IE&#x3001;Chrome&#x3001;Firefox&#x3001;Safari&#x3001;Opera<br> &#x56DB;&#x5927;&#x5185;&#x6838;&#xFF1A;IE&#x5185;&#x6838;&#xFF08;Trident&#xFF09;&#x3001;webkit&#x3001;Blink&#x3001;Gecko&#x3002;</p>
</li>
<li><p>position&#x7684;&#x503C;relative&#x548C;absolute&#x7684;&#x5B9A;&#x4F4D;&#x539F;&#x70B9;&#x662F;&#x4EC0;&#x4E48;&#xFF1F;</p>
</li>
<li><p>&#x5728;&#x7F51;&#x9875;&#x4E2D;&#x7684;&#x5E94;&#x8BE5;&#x4F7F;&#x7528;&#x5947;&#x6570;&#x8FD8;&#x662F;&#x5076;&#x6570;&#x7684;&#x5B57;&#x4F53;&#xFF1F;&#x4E3A;&#x4EC0;&#x4E48;&#xFF1F;</p>
</li>
<li><p>&#x4EC0;&#x4E48;&#x662F;window&#x5BF9;&#x8C61;&#xFF1F;&#x4EC0;&#x4E48;&#x662F;document&#x5BF9;&#x8C61;?</p>
</li>
<li><p>null &#x548C; undefined&#x7684;&#x533A;&#x522B;&#xFF1F;</p>
</li>
<li><p>js&#x7684;typeof&#x8FD4;&#x56DE;&#x54EA;&#x4E9B;&#x6570;&#x636E;&#x7C7B;&#x578B;&#xFF1F;</p>
</li>
<li><p>&#x7EBF;&#x7A0B;&#x4E0E;&#x8FDB;&#x7A0B;&#x7684;&#x533A;&#x522B;&#xFF1F;</p>
</li>
<li><p>&#x4E8B;&#x4EF6;&#x7684;&#x59D4;&#x6258;&#x662F;&#x4EC0;&#x4E48;&#xFF1F;</p>
</li>
<li><p>MVVM&#x7684;&#x7406;&#x89E3;&#xFF1F;</p>
</li>
<li><p>Vue&#x7684;&#x751F;&#x547D;&#x5468;&#x671F;</p>
</li>
<li><p>&#x5355;&#x9875;&#x5E94;&#x7528;&#x7684;&#x4F18;&#x7F3A;&#x70B9;<br>&#x81F4;&#x547D;&#x7F3A;&#x70B9;&#xFF1A;SEO&#x4F18;&#x5316;&#x95EE;&#x9898;&#xFF0C;&#x641C;&#x7D22;&#x5F15;&#x64CE;&#x6027;&#x80FD;&#x8F83;&#x5DEE;  &#x89E3;&#x51B3;&#xFF1A;&#x670D;&#x52A1;&#x7AEF;&#x6E32;&#x67D3;ssr</p>
</li>
<li>vue.js&#x7684;&#x4E24;&#x4E2A;&#x6838;&#x5FC3;&#x662F;&#xFF1F;<br>&#x6570;&#x636E;&#x9A71;&#x52A8;&#x3001;&#x7EC4;&#x4EF6;&#x5316;</li>
<li>vue&#x7EC4;&#x4EF6;&#x4E2D;data&#x4E3A;&#x4EC0;&#x4E48;&#x5FC5;&#x987B;&#x662F;&#x51FD;&#x6570;&#xFF1F;<br>&#x51FD;&#x6570;&#x7684;&#x50A8;&#x5B58;&#x662F;&#x5730;&#x5740;&#xFF0C;&#x4FDD;&#x8BC1;&#x6570;&#x636E;&#x5728;&#x91CD;&#x7528;&#x65F6;&#x662F;&#x540C;&#x4E00;&#x4E2A;</li>
<li>&#x89E3;&#x51B3;&#x975E;&#x5DE5;&#x7A0B;&#x5316;&#x9879;&#x76EE;&#x521D;&#x59CB;&#x5316;&#x7684;&#x95EA;&#x52A8;&#x95EE;&#x9898;<br>[v-cloak]</li>
<li>&#x5982;&#x4F55;&#x8BA9;css&#x53EA;&#x5728;&#x5F53;&#x524D;&#x7EC4;&#x4EF6;&#x4E2D;&#x8D77;&#x4F5C;&#x7528;<br>scoped&#x4F5C;&#x7528;&#x57DF;&#xFF08;&#x672C;&#x8D28;&#xFF1A;&#x6BCF;&#x4E2A;&#x7EC4;&#x4EF6;&#x90FD;&#x6709;&#x4E2A;&#x81EA;&#x5B9A;&#x4E49;&#x5C5E;&#x6027; v-1234&#xFF0C;vue&#x4F1A;&#x5BF9;css&#x6837;&#x5F0F;&#x6DFB;&#x52A0;&#x5BF9;&#x5E94;&#x7684;&#x5C5E;&#x6027;&#x9009;&#x62E9;&#x5668;&#xFF09;</li>
</ol>
<p>&#x58F0;&#x660E;&#xFF1A;var&#xFF0C;function&#xFF0C;let&#xFF0C;const&#xFF0C;import&#xFF0C;class</p>
<p>&#x8DE8;&#x57DF;&#x7684;&#x95EE;&#x9898;</p>
<p>&#x72EC;&#x7ACB;&#x50CF;&#x7D20;&#x6BD4;  &#x79FB;&#x52A8;&#x7AEF;&#xFF08;&#x89C6;&#x7F51;&#x819C;&#x5C4F;&#xFF09;&#xFF08;Q&#x7FA4;&#x6709;&#x5177;&#x4F53;&#x7684;&#x4E8B;&#x4F8B;&#x56FE;&#xFF09;</p>
<p>&#x95ED;&#x5305;&#x7684;&#x7406;&#x89E3;<br>&#x4E3A;&#x4E86;&#x5904;&#x7406;&#x547D;&#x540D;&#x7A7A;&#x95F4;&#xFF08;&#x53D8;&#x91CF;&#x6C61;&#x67D3;&#xFF09;&#x7684;&#x95EE;&#x9898;&#xFF0C;&#x53EF;&#x4EE5;&#x7528;&#x5728;&#x5C01;&#x88C5;&#x51FD;&#x6570;&#x65F6;&#x4F7F;&#x7528;&#x4F8B;&#x5982;jq
&#x7B54;&#xFF1A;widow&#xFF1B;    //&#x6700;&#x5927;&#x7684;&#x5BF9;&#x8C61;&#xFF0C;&#x9ED8;&#x8BA4;&#x6302;&#x8F7D;&#x7684;&#x4F4D;&#x7F6E;    </p>
<pre><code class="lang-js">  <span class="hljs-keyword">var</span> a=<span class="hljs-number">1</span>&#xFF1B;
  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">fun</span>&#xFF08;<span class="hljs-title">num</span>&#xFF09;</span>{  
    <span class="hljs-comment">//&#x51FD;&#x6570;&#x4F5C;&#x7528;&#x57DF;</span>
    <span class="hljs-keyword">var</span> a=<span class="hljs-number">10</span>&#xFF1B;
    <span class="hljs-built_in">console</span>.log(num);   <span class="hljs-comment">//&#x4FDD;&#x5B58;1</span>
    <span class="hljs-keyword">return</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">inner</span>(<span class="hljs-params">num</span>)</span>{   <span class="hljs-comment">//window-&gt;fun-&gt;inner</span>
      <span class="hljs-keyword">var</span> b = <span class="hljs-number">20</span>;
      <span class="hljs-built_in">console</span>.log(num);
    }
    <span class="hljs-comment">//inner();</span>
    <span class="hljs-comment">//&#x4E3B;&#x52A8;&#x66B4;&#x9732;&#xFF1A;&#x6302;&#x8F7D;&#x5728;window&#x4E0A;</span>
    <span class="hljs-built_in">window</span>.kankan = {
    num:num,
    inner:inner
    }
  } 
  <span class="hljs-keyword">var</span> fun_inner = fun(a)
  a = <span class="hljs-number">2</span>;
  fun_inner();
</code></pre>
<ol>
<li>JS&#x7684;&#x539F;&#x578B;<br>&#x7B54;&#xFF1A;</li>
<li>&#x53D8;&#x91CF;&#x4F5C;&#x7528;&#x57DF;&#x94FE;<br>&#x7B54;&#xFF1A;</li>
<li>call&#x3001;apply&#x3001;bind&#x7684;&#x533A;&#x522B;<br>&#x7B54;&#xFF1A;&#x4E09;&#x8005;&#x7684;&#x76F8;&#x540C;&#x70B9;&#xFF1A;&#x6539;&#x53D8;&#x51FD;&#x6570;&#x5185;&#x90E8;this&#x6307;&#x5411;&#xFF1B;call&#x548C;apply&#x7684;&#x7B2C;&#x4E00;&#x4E2A;&#x53C2;&#x6570;&#x90FD;&#x662F;this&#xFF0C;&#x4F46;apply&#x7684;&#x7B2C;&#x4E8C;&#x4E2A;&#x53C2;&#x6570;&#x4E3A;&#x6570;&#x7EC4;&#xFF1B;bind&#x8C03;&#x7528;&#x7684;&#x662F;&#x5BF9;&#x8C61;&#x7684;&#x51FD;&#x6570;&#x3002;</li>
<li>&#x9632;&#x6296;&#x548C;&#x8282;&#x6D41;&#x7684;&#x533A;&#x522B;<br>&#x7B54;&#xFF1A;&#x4E24;&#x8005;&#x90FD;&#x662F;&#x7528;&#x4E8E;&#x63A7;&#x5236;&#x4E8B;&#x4EF6;&#x5728;&#x4E00;&#x5B9A;&#x65F6;&#x95F4;&#x5185;&#x89E6;&#x53D1;&#x7684;&#x9891;&#x7387;&#xFF1B;&#x9632;&#x6296;&#xFF1A;&#x5728;&#x4E00;&#x5B9A;&#x65F6;&#x95F4;&#x5185;&#xFF0C;&#x8BA9;&#x51FD;&#x6570;&#x53EA;&#x89E6;&#x53D1;&#x4E00;&#x6B21;&#xFF1B;&#x8282;&#x6D41;&#xFF1A;&#x5728;&#x4E00;&#x5B9A;&#x65F6;&#x95F4;&#x95F4;&#x9694;&#x540E;&#xFF0C;&#x624D;&#x80FD;&#x89E6;&#x53D1;&#x51FD;&#x6570;</li>
<li>&#x4ECB;&#x7ECD;&#x4E0B;&#x6D4F;&#x89C8;&#x5668;&#x8DE8;&#x57DF;<br>&#x7B54;&#xFF1A;&#x540C;&#x6E90;&#x7B56;&#x7565;&#xFF1A;&#x534F;&#x8BAE;&#x3001;&#x57DF;&#x540D;&#x3001;&#x7AEF;&#x53E3;&#x90FD;&#x8981;&#x4E00;&#x81F4;&#xFF1B;&#x4EFB;&#x4E00;&#x4E2A;&#x4E0D;&#x540C;&#x65F6;&#x4F1A;&#x53D1;&#x751F;&#x8DE8;&#x57DF;&#xFF0C;&#x5C31;&#x662F;&#x8BF4;&#x4ECE;&#x57DF;&#x540D;A&#x4E0B;&#x7684;&#x4E00;&#x4E2A;&#x9875;&#x9762;&#x83B7;&#x53D6;&#x57DF;&#x540D;B&#x4E0B;&#x7684;&#x4E00;&#x4E2A;&#x8D44;&#x6E90;&#xFF0C;&#x6D4F;&#x89C8;&#x5668;&#x662F;&#x4E0D;&#x5141;&#x8BB8;&#x7684;&#x3002;</li>
<li>&#x600E;&#x4E48;&#x53BB;&#x89E3;&#x51B3;&#x8DE8;&#x57DF;&#x95EE;&#x9898;<br>&#x7B54;&#xFF1A;1.&#x5728;&#x670D;&#x52A1;&#x7AEF;&#x4E2D;&#x7684;&#x76F8;&#x5E94;&#x5934;header&#x4E2D;&#x6DFB;&#x52A0;&#x5141;&#x8BB8;&#x5934;&#xFF1B;2.jsonp&#x65B9;&#x5F0F;&#xFF0C;&#x901A;&#x8FC7;&#x628A;&#x4E0D;&#x540C;&#x6E90;&#x7684;&#x8BF7;&#x6C42;&#x4F2A;&#x88C5;&#x6210;&#x4E00;&#x4E2A;&#x811A;&#x672C;&#x8BF7;&#x6C42;&#xFF1B;3.&#x53CD;&#x5411;&#x4EE3;&#x7406;&#xFF0C;&#x901A;&#x8FC7;&#x670D;&#x52A1;&#x7AEF;&#x4EE3;&#x7406;&#x8BF7;&#x6C42;&#x3002;</li>
<li>jsonp&#x65B9;&#x6848;&#x9700;&#x8981;&#x670D;&#x52A1;&#x7AEF;&#x600E;&#x4E48;&#x914D;&#x5408;<br>&#x7B54;&#xFF1A;&#x5728;&#x540C;&#x6E90;&#x7B56;&#x7565;&#x4E0B;&#xFF0C;&#x5728;&#x67D0;&#x4E2A;&#x670D;&#x52A1;&#x5668;&#x4E0B;&#x7684;&#x9875;&#x9762;&#x662F;&#x65E0;&#x6CD5;&#x83B7;&#x53D6;&#x5230;&#x8BE5;&#x670D;&#x52A1;&#x5668;&#x4EE5;&#x5916;&#x7684;&#x6570;&#x636E;&#x7684;&#xFF0C;&#x4F46;img&#x3001;iframe&#x3001;script&#x7B49;&#x6807;&#x7B7E;&#x662F;&#x4E2A;&#x4F8B;&#x5916;&#xFF0C;&#x8FD9;&#x4E9B;&#x6807;&#x7B7E;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;src&#x5C5E;&#x6027;&#x8BF7;&#x6C42;&#x5230;&#x5176;&#x4ED6;&#x670D;&#x52A1;&#x5668;&#x4E0A;&#x7684;&#x6570;&#x636E;&#x3002;&#x5229;&#x7528;script&#x6807;&#x7B7E;&#x7684;&#x5F00;&#x653E;&#x7B56;&#x7565;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;&#x8DE8;&#x57DF;&#x8BF7;&#x6C42;&#x6570;&#x636E;&#xFF0C;&#x5F53;&#x7136;&#xFF0C;&#x4E5F;&#x9700;&#x8981;&#x670D;&#x52A1;&#x7AEF;&#x7684;&#x914D;&#x5408;&#x3002;&#x5F53;&#x6211;&#x4EEC;&#x6B63;&#x5E38;&#x5730;&#x8BF7;&#x6C42;&#x4E00;&#x4E2A;JSON&#x6570;&#x636E;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x670D;&#x52A1;&#x7AEF;&#x8FD4;&#x56DE;&#x7684;&#x662F;&#x4E00;&#x4E32;JSON&#x7C7B;&#x578B;&#x7684;&#x6570;&#x636E;&#xFF0C;&#x800C;&#x6211;&#x4EEC;&#x4F7F;&#x7528;JSONP&#x6A21;&#x5F0F;&#x6765;&#x8BF7;&#x6C42;&#x6570;&#x636E;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x670D;&#x52A1;&#x7AEF;&#x8FD4;&#x56DE;&#x7684;&#x662F;&#x4E00;&#x6BB5;&#x53EF;&#x6267;&#x884C;&#x7684;JavaScript&#x4EE3;&#x7801;&#x3002;</li>
<li>Ajax&#x53D1;&#x751F;&#x8DE8;&#x57DF;&#x8981;&#x8BBE;&#x7F6E;&#x4EC0;&#x4E48;&#xFF08;&#x524D;&#x7AEF;&#xFF09;<br>&#x7B54;&#xFF1A;&#x901A;&#x8FC7;jsonp&#x7684;&#x65B9;&#x5F0F;&#xFF0C;&#x53EA;&#x9002;&#x7528;&#x4E8E;get&#x65B9;&#x5F0F;&#xFF1B;1.&#x521B;&#x5EFA;script&#x6807;&#x7B7E; 2.&#x5728;script&#x6807;&#x7B7E;&#x7684;src&#x5C5E;&#x6027;&#x4E2D;&#x6DFB;&#x52A0;&#x52A0;&#x8F7D;&#x8D44;&#x6E90;&#xFF08;&#x63A5;&#x53E3;&#xFF09; 3.&#x6DFB;&#x52A0;&#x5230;&#x9875;&#x9762;&#x5E76;&#x6267;&#x884C;&#x56DE;&#x8C03;</li>
<li>Javascript&#x4F5C;&#x7528;&#x94FE;&#x57DF;?<br>&#x7B54;&#xFF1A;</li>
<li>JavaScript &#x4E2D;&#xFF0C;&#x8C03;&#x7528;&#x51FD;&#x6570;&#x6709;&#x54EA;&#x51E0;&#x79CD;&#x65B9;&#x5F0F;&#xFF1F;<br>&#x7B54;&#xFF1A;1.&#x51FD;&#x6570;&#x8C03;&#x7528;&#x6A21;&#x5F0F; 2.&#x65B9;&#x6CD5;&#x8C03;&#x7528;&#x6A21;&#x5F0F; 3.&#x6784;&#x9020;&#x5668;&#x6A21;&#x5F0F; 4.call/apply&#x6A21;&#x5F0F;</li>
<li>JavaScript &#x5BF9;&#x8C61;&#x751F;&#x547D;&#x5468;&#x671F;&#x7684;&#x7406;&#x89E3;&#xFF1F;<br>&#x7B54;&#xFF1A;</li>
<li>cookie&#x7684;&#x4F5C;&#x7528;&#x548C;&#x7279;&#x70B9;<br>&#x7B54;&#xFF1A;&#x4F5C;&#x7528;&#xFF1A;&#x7F13;&#x5B58;&#x6570;&#x636E;&#xFF0C;&#x7279;&#x70B9;&#xFF1A;&#x5BB9;&#x91CF;4kb</li>
<li><p>&#x4E00;&#x4E2A;&#x9875;&#x9762;&#x4ECE;&#x8F93;&#x5165; URL &#x5230;&#x9875;&#x9762;&#x52A0;&#x8F7D;&#x663E;&#x793A;&#x5B8C;&#x6210;&#xFF0C;&#x8FD9;&#x4E2A;&#x8FC7;&#x7A0B;&#x4E2D;&#x90FD;&#x53D1;&#x751F;&#x4E86;&#x4EC0;&#x4E48;&#xFF1F;<br>&#x7B54;&#xFF1A; &#x8BE6;&#x7EC6;&#x7248;<br>1&#x3001;&#x6D4F;&#x89C8;&#x5668;&#x4F1A;&#x5F00;&#x542F;&#x4E00;&#x4E2A;&#x7EBF;&#x7A0B;&#x6765;&#x5904;&#x7406;&#x8FD9;&#x4E2A;&#x8BF7;&#x6C42;&#xFF0C;&#x5BF9;URL &#x5206;&#x6790;&#x5224;&#x65AD;&#x5982;&#x679C;&#x662F; http &#x534F;&#x8BAE;&#x5C31;&#x6309;&#x7167; Web &#x65B9;&#x5F0F;&#x6765;&#x5904;&#x7406;; 
2&#x3001;&#x8C03;&#x7528;&#x6D4F;&#x89C8;&#x5668;&#x5185;&#x6838;&#x4E2D;&#x7684;&#x5BF9;&#x5E94;&#x65B9;&#x6CD5;&#xFF0C;&#x6BD4;&#x5982; WebView &#x4E2D;&#x7684; loadUrl &#x65B9;&#x6CD5;;<br>3&#x3001;&#x901A;&#x8FC7;DNS&#x89E3;&#x6790;&#x83B7;&#x53D6;&#x7F51;&#x5740;&#x7684;IP&#x5730;&#x5740;&#xFF0C;&#x8BBE;&#x7F6E; UA &#x7B49;&#x4FE1;&#x606F;&#x53D1;&#x51FA;&#x7B2C;&#x4E8C;&#x4E2A;GET&#x8BF7;&#x6C42;;<br>4&#x3001;&#x8FDB;&#x884C;HTTP&#x534F;&#x8BAE;&#x4F1A;&#x8BDD;&#xFF0C;&#x5BA2;&#x6237;&#x7AEF;&#x53D1;&#x9001;&#x62A5;&#x5934;(&#x8BF7;&#x6C42;&#x62A5;&#x5934;);<br>5&#x3001;&#x8FDB;&#x5165;&#x5230;web&#x670D;&#x52A1;&#x5668;&#x4E0A;&#x7684; WebServer&#xFF0C;&#x5982; Apache&#x3001;Tomcat&#x3001;Node.js &#x7B49;&#x670D;&#x52A1;&#x5668;;<br>6&#x3001;&#x8FDB;&#x5165;&#x90E8;&#x7F72;&#x597D;&#x7684;&#x540E;&#x7AEF;&#x5E94;&#x7528;&#xFF0C;&#x5982;PHP&#x3001;Java&#x3001;JavaScript&#x3001;Python &#x7B49;&#xFF0C;&#x627E;&#x5230;&#x5BF9;&#x5E94;&#x7684;&#x8BF7;&#x6C42;&#x5904;&#x7406;;<br>7&#x3001;&#x5904;&#x7406;&#x7ED3;&#x675F;&#x56DE;&#x9988;&#x62A5;&#x5934;&#xFF0C;&#x6B64;&#x5904;&#x5982;&#x679C;&#x6D4F;&#x89C8;&#x5668;&#x8BBF;&#x95EE;&#x8FC7;&#xFF0C;&#x7F13;&#x5B58;&#x4E0A;&#x6709;&#x5BF9;&#x5E94;&#x8D44;&#x6E90;&#xFF0C;&#x4F1A;&#x4E0E;&#x670D;&#x52A1;&#x5668;&#x6700;&#x540E;&#x4FEE;&#x6539;&#x65F6;&#x95F4;&#x5BF9;&#x6BD4;&#xFF0C;&#x4E00;&#x81F4;&#x5219;&#x8FD4;&#x56DE;304; 
8&#x3001;&#x6D4F;&#x89C8;&#x5668;&#x5F00;&#x59CB;&#x4E0B;&#x8F7D;html&#x6587;&#x6863;(&#x54CD;&#x5E94;&#x62A5;&#x5934;&#xFF0C;&#x72B6;&#x6001;&#x7801;200)&#xFF0C;&#x540C;&#x65F6;&#x4F7F;&#x7528;&#x7F13;&#x5B58;; 
9&#x3001;&#x6587;&#x6863;&#x6811;&#x5EFA;&#x7ACB;&#xFF0C;&#x6839;&#x636E;&#x6807;&#x8BB0;&#x8BF7;&#x6C42;&#x6240;&#x9700;&#x6307;&#x5B9A;MIME&#x7C7B;&#x578B;&#x7684;&#x6587;&#x4EF6;&#xFF08;&#x6BD4;&#x5982;css&#x3001;js&#xFF09;,&#x540C;&#x65F6;&#x8BBE;&#x7F6E;&#x4E86;cookie;<br>10&#x3001;&#x9875;&#x9762;&#x5F00;&#x59CB;&#x6E32;&#x67D3;DOM&#xFF0C;JS&#x6839;&#x636E;DOM API&#x64CD;&#x4F5C;DOM,&#x6267;&#x884C;&#x4E8B;&#x4EF6;&#x7ED1;&#x5B9A;&#x7B49;&#xFF0C;&#x9875;&#x9762;&#x663E;&#x793A;&#x5B8C;&#x6210;&#x3002;  </p>
<p>&#x7B80;&#x6D01;&#x7248;&#xFF1A;<br>1.&#x6D4F;&#x89C8;&#x5668;&#x6839;&#x636E;&#x8BF7;&#x6C42;&#x7684;URL&#x4EA4;&#x7ED9;DNS&#x57DF;&#x540D;&#x89E3;&#x6790;&#xFF0C;&#x627E;&#x5230;&#x771F;&#x5B9E;IP&#xFF0C;&#x5411;&#x670D;&#x52A1;&#x5668;&#x53D1;&#x8D77;&#x8BF7;&#x6C42;&#xFF1B;<br>2.&#x670D;&#x52A1;&#x5668;&#x4EA4;&#x7ED9;&#x540E;&#x53F0;&#x5904;&#x7406;&#x5B8C;&#x6210;&#x540E;&#x8FD4;&#x56DE;&#x6570;&#x636E;&#xFF0C;&#x6D4F;&#x89C8;&#x5668;&#x63A5;&#x6536;&#x6587;&#x4EF6;&#xFF08;HTML&#x3001;JS&#x3001;CSS&#x3001;&#x56FE;&#x8C61;&#x7B49;&#xFF09;&#xFF1B; 
3.&#x6D4F;&#x89C8;&#x5668;&#x5BF9;&#x52A0;&#x8F7D;&#x5230;&#x7684;&#x8D44;&#x6E90;&#xFF08;HTML&#x3001;JS&#x3001;CSS&#x7B49;&#xFF09;&#x8FDB;&#x884C;&#x8BED;&#x6CD5;&#x89E3;&#x6790;&#xFF0C;&#x5EFA;&#x7ACB;&#x76F8;&#x5E94;&#x7684;&#x5185;&#x90E8;&#x6570;&#x636E;&#x7ED3;&#x6784;&#xFF08;&#x5982;HTML&#x7684;DOM&#xFF09;&#xFF1B;<br>4.&#x8F7D;&#x5165;&#x89E3;&#x6790;&#x5230;&#x7684;&#x8D44;&#x6E90;&#x6587;&#x4EF6;&#xFF0C;&#x6E32;&#x67D3;&#x9875;&#x9762;&#xFF0C;&#x5B8C;&#x6210;&#x3002;  </p>
</li>
<li>vue&#x7684;&#x4F18;&#x70B9;&#x662F;&#x4EC0;&#x4E48;&#xFF1F;<br>&#x7B54;&#xFF1A;1.&#x4E0E;js&#x5BF9;&#x6BD4;&#xFF0C;&#x51CF;&#x5C11;&#x4E86;DOM&#x64CD;&#x4F5C;&#xFF1B; 
2.&#x5177;&#x5907;&#x7EC4;&#x4EF6;&#x529F;&#x80FD;&#x548C;&#x5355;&#x9875;&#x5E94;&#x7528;  </li>
<li>&#x8BF7;&#x8BE6;&#x7EC6;&#x8BF4;&#x4E0B;&#x4F60;&#x5BF9;vue&#x751F;&#x547D;&#x5468;&#x671F;&#x7684;&#x7406;&#x89E3;<br>&#x7B54;&#xFF1A;&#x521B;&#x5EFA;&#xFF1A;&#x6570;&#x636E;&#x548C;&#x65B9;&#x6CD5;&#x7684;&#x52A0;&#x8F7D;&#xFF1B;&#x6302;&#x8F7D;&#xFF1A;&#x6E32;&#x67D3;&#x9875;&#x9762;&#xFF1B;&#x66F4;&#x65B0;&#xFF1A;&#x66F4;&#x65B0;&#x6570;&#x636E;&#xFF1B;&#x9500;&#x6BC1;&#xFF1A;</li>
<li>&#x7EC4;&#x4EF6;&#x4E4B;&#x95F4;&#x7684;&#x4F20;&#x503C;&#xFF1F;(&#x4EE3;&#x7801;&#x8BF4;&#x660E;)<br>&#x7B54;&#xFF1A;&#x7236;&#x7EC4;&#x4EF6;&#x4E0E;&#x5B50;&#x7EC4;&#x4EF6;&#x7684;&#x4F20;&#x503C;&#xFF0C;&#x901A;&#x8FC7;prop&#xFF1B;&#x5B50;&#x7EC4;&#x4EF6;&#x5411;&#x7236;&#x7EC4;&#x4EF6;&#x4F20;&#x503C;&#xFF0C;&#x901A;&#x8FC7;emit&#x4E8B;&#x4EF6;&#x89E6;&#x53D1;</li>
<li>vuex&#x662F;&#x4EC0;&#x4E48;&#xFF1F;&#x600E;&#x4E48;&#x4F7F;&#x7528;&#xFF1F;&#x54EA;&#x79CD;&#x529F;&#x80FD;&#x573A;&#x666F;&#x4F7F;&#x7528;&#x5B83;&#xFF1F;<br>&#x7B54;&#xFF1A;vuex&#x662F;vue&#x7684;&#x72B6;&#x6001;&#x7BA1;&#x7406;&#x6A21;&#x5F0F;&#xFF0C;&#x53EF;&#x4EE5;&#x7BA1;&#x7406;&#x5171;&#x4EAB;&#x72B6;&#x6001;&#xFF0C;&#x5728;&#x4E2D;&#x5927;&#x578B;&#x5355;&#x9875;&#x5E94;&#x7528;&#x4E2D;&#x4F7F;&#x7528;&#x5230;&#x5B83;&#x3002;</li>
<li>Vue computed &#x5B9E;&#x73B0;<br>&#x7B54;&#xFF1A;&#x8BA1;&#x7B97;&#x5C5E;&#x6027;&#x901A;&#x8FC7;&#x6570;&#x636E;&#x7684;&#x4F9D;&#x8D56;&#xFF0C;&#x6765;&#x8FDB;&#x884C;&#x6570;&#x636E;&#x7684;&#x66F4;&#x65B0;&#xFF0C;&#x4F46;&#x6570;&#x636E;&#x672A;&#x53D1;&#x751F;&#x53D8;&#x5316;&#x65F6;&#xFF0C;&#x8BA1;&#x7B97;&#x5C5E;&#x6027;&#x8FD4;&#x56DE;&#x4E4B;&#x524D;&#x503C;&#xFF0C;&#x5177;&#x6709;&#x7F13;&#x5B58;&#x7684;&#x529F;&#x80FD;&#x3002;</li>
<li>Vue &#x7EC4;&#x4EF6; data &#x4E3A;&#x4EC0;&#x4E48;&#x5FC5;&#x987B;&#x662F;&#x51FD;&#x6570;<br>&#x7B54;&#xFF1A;&#x901A;&#x8FC7;&#x51FD;&#x6570;&#x6765;&#x7ED9;data&#x4E00;&#x4E2A;&#x72EC;&#x7ACB;&#x7684;&#x4F5C;&#x7528;&#x57DF;&#x3002;</li>
<li><p>&#x539F;&#x578B;&#x94FE;</p>
</li>
<li><p>&#x95ED;&#x5305;</p>
</li>
<li><p>&#x63CF;&#x8FF0;&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x6E32;&#x67D3;&#x8FC7;&#x7A0B;</p>
</li>
<li><p>ES6&#x548C;ES5&#x533A;&#x522B;</p>
</li>
<li><p>&#x4F5C;&#x7528;&#x57DF;&#x94FE;</p>
</li>
<li><p>&#x5C0F;&#x7A0B;&#x5E8F;&#x767B;&#x5F55;</p>
</li>
<li><p>&#x5C0F;&#x7A0B;&#x5E8F;&#x751F;&#x547D;&#x5468;&#x671F;</p>
</li>
<li><p>&#x5C0F;&#x7A0B;&#x5E8F;&#x5E38;&#x7528;API(&#x9879;&#x76EE;&#x7528;&#x5230;&#x7684;API)</p>
</li>
<li><p>&#x5C0F;&#x7A0B;&#x5E8F;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x95EE;&#x9898;</p>
</li>
<li><p>vue&#x7684;&#x6838;&#x5FC3;</p>
</li>
<li><p>&#x4EC0;&#x4E48;&#x662F;&#x53CC;&#x5411;&#x7ED1;&#x5B9A;</p>
</li>
<li><p>vue-router&#x662F;&#x4EC0;&#x4E48;</p>
</li>
<li><p>vuex&#x662F;&#x4EC0;&#x4E48;</p>
</li>
<li><p>&#x5C0F;&#x7A0B;&#x5E8F;&#x548C;vue&#xFF08;H5&#xFF09;&#x4E4B;&#x95F4;&#x6709;&#x4EC0;&#x4E48;&#x5DEE;&#x5F02;</p>
</li>
<li><p>&#x7EF4;&#x62A4;&#x9879;&#x76EE;</p>
<ol>
<li>cdn</li>
<li>&#x9875;&#x9762;&#x6E32;&#x67D3;&#x901F;&#x5EA6;&#x6216;&#x8005;&#x63A5;&#x53E3;&#x7684;&#x54CD;&#x5E94;&#x901F;&#x5EA6;</li>
<li>&#x8D44;&#x6E90;&#x4F18;&#x5316;</li>
<li>&#x66F4;&#x65B0;&#x65F6;&#x95F4;</li>
</ol>
</li>
</ol>
<pre><code class="lang-js">  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">fun</span>(<span class="hljs-params">n,o</span>)</span>{
    <span class="hljs-built_in">console</span>.log(o);
    <span class="hljs-keyword">return</span>{
      fun:<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">m</span>)</span>{
        <span class="hljs-keyword">return</span> fun(m,n);
      }
    }
  }
  <span class="hljs-keyword">var</span> a = fun(<span class="hljs-number">0</span>);  <span class="hljs-comment">// undefined</span>
  a.fun(<span class="hljs-number">1</span>);        <span class="hljs-comment">// 0</span>
  a.fun(<span class="hljs-number">2</span>);        <span class="hljs-comment">// 0</span>
  a.fun(<span class="hljs-number">3</span>);        <span class="hljs-comment">// 0</span>

  <span class="hljs-keyword">var</span> b = fun(<span class="hljs-number">0</span>).fun(<span class="hljs-number">1</span>).fun(<span class="hljs-number">2</span>).fun(<span class="hljs-number">3</span>); <span class="hljs-comment">//undefined 0 1 2</span>

  <span class="hljs-keyword">var</span> c = fun(<span class="hljs-number">0</span>).fun(<span class="hljs-number">1</span>);   <span class="hljs-comment">// undefined 0</span>
  c.fun(<span class="hljs-number">2</span>);                <span class="hljs-comment">// 1</span>
  c.fun(<span class="hljs-number">3</span>);                <span class="hljs-comment">// 1</span>
</code></pre>
<pre><code class="lang-js">  <span class="hljs-comment">// &#x5C06;&#x4E00;&#x4E0B;&#x51FD;&#x6570;&#x8865;&#x5145;&#x5B8C;&#x6210;</span>
  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">sum</span>(<span class="hljs-params">a,b,c</span>)</span>{
    <span class="hljs-keyword">if</span>(<span class="hljs-built_in">arguments</span>.length==<span class="hljs-number">3</span>){
      <span class="hljs-keyword">return</span> a+b+c;
    }<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span>(<span class="hljs-built_in">arguments</span>.length==<span class="hljs-number">2</span>){
      <span class="hljs-keyword">return</span> (m)=&gt;{
        <span class="hljs-keyword">return</span> sum(a,b,m)
      }
    }<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span>(<span class="hljs-built_in">arguments</span>.length==<span class="hljs-number">1</span>){
      <span class="hljs-keyword">return</span> (m)=&gt;{
        <span class="hljs-keyword">return</span> sum(a,m)
      }
    }<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span>(<span class="hljs-built_in">arguments</span>.length==<span class="hljs-number">0</span>){
      <span class="hljs-keyword">let</span> m = <span class="hljs-number">0</span>
      <span class="hljs-keyword">return</span> (m)=&gt;{
        <span class="hljs-keyword">return</span> sum(m)
      }
    }
  }
  <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">currying</span>(<span class="hljs-params">fn</span>)</span>{
    <span class="hljs-keyword">if</span>(<span class="hljs-built_in">arguments</span>.length == <span class="hljs-number">4</span>){
      <span class="hljs-keyword">return</span> fn(<span class="hljs-built_in">arguments</span>[<span class="hljs-number">1</span>],<span class="hljs-built_in">arguments</span>[<span class="hljs-number">2</span>],<span class="hljs-built_in">arguments</span>[<span class="hljs-number">3</span>])
    }<span class="hljs-keyword">else</span>{
      <span class="hljs-keyword">return</span> fn
    }
  }
  <span class="hljs-keyword">var</span> curry = currying(sum);
  <span class="hljs-built_in">console</span>.log(currying(sum,<span class="hljs-number">1</span>,<span class="hljs-number">2</span>,<span class="hljs-number">3</span>));
  <span class="hljs-built_in">console</span>.log(curry(<span class="hljs-number">1</span>)(<span class="hljs-number">2</span>)(<span class="hljs-number">3</span>));  <span class="hljs-comment">// currying(sum)(1)(2)(3) //3 --&gt; sum(1)(2)(3)</span>
  <span class="hljs-built_in">console</span>.log(curry(<span class="hljs-number">1</span>,<span class="hljs-number">2</span>)(<span class="hljs-number">3</span>));  <span class="hljs-comment">// currying(sum)(1,2)(3)  //2 --&gt; sum(1,2)(3)</span>
  <span class="hljs-built_in">console</span>.log(curry()(<span class="hljs-number">1</span>)(<span class="hljs-number">2</span>)(<span class="hljs-number">3</span>));  <span class="hljs-comment">// currying(sum)()(1)(2)(3)  //4 --&gt; sum()(1)(2)(3)</span>
  <span class="hljs-built_in">console</span>.log(curry(<span class="hljs-number">1</span>,<span class="hljs-number">2</span>,<span class="hljs-number">3</span>));   <span class="hljs-comment">// currying(sum)(1,2,3)  //1 --&gt; sum(1,2,3)</span>
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../使用/使用.html" class="navigation navigation-prev " aria-label="Previous page: md语法 & gitbook使用">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="html.html" class="navigation navigation-next " aria-label="Next page: HTML">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"面试题","level":"1.2","depth":1,"next":{"title":"HTML","level":"1.2.1","depth":2,"path":"面试题/html.md","ref":"面试题/html.md","articles":[]},"previous":{"title":"md语法 & gitbook使用","level":"1.1.1","depth":2,"path":"使用/使用.md","ref":"使用/使用.md","articles":[]},"dir":"ltr"},"config":{"plugins":["toggle-chapters","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"toggle-chapters":{},"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"gitbook电子书","gitbook":"*","description":"记录前端相关的知识点以及一些示例的demo"},"file":{"path":"面试题/面试题.md","mtime":"2019-03-19T05:59:40.311Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-09-06T08:37:43.293Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

